Remove (igc) warning on FreeBSD.
authoroliskoli <oliskoli>
Fri, 24 Nov 2006 21:45:26 +0000 (21:45 +0000)
committeroliskoli <oliskoli>
Fri, 24 Nov 2006 21:45:26 +0000 (21:45 +0000)
igc.c

diff --git a/igc.c b/igc.c
index f5139755007e9c12a09fc10fbe3d57f9624344fd..f94a5a29f39e222f7b4cbfbe1d15a2a0f83a554b 100644 (file)
--- a/igc.c
+++ b/igc.c
@@ -305,7 +305,7 @@ static void data_read(void)
        case rec_fix:
            // Date must appear in file before the first fix record
            if (date < 1000000L) {
-               fatal(MYNAME ": bad date %ld\n", date);
+               fatal(MYNAME ": bad date %d\n", (int)date);
            }
            // Create a track for pressure altitude waypoints
            if (!pres_head) {